package com.tansun.easycare.rule.datamodel.service;

import java.util.LinkedHashMap;
import java.util.List;

import com.tansun.easycare.core.service.CrudService;
import com.tansun.easycare.rule.datamodel.entity.RuleDataEntity;
import com.tansun.easycare.rule.datasource.entity.RuleDatasheet;
import com.tansun.easycare.rule.datasource.entity.RuleDatasheetColumn;
import com.tansun.easycare.rule.front.entity.RuleDatasource;

/**
 * 导入表Service
 * @author ypx
 * @version 2018-08-09
 */

public interface DBtoDataModelService extends  CrudService<RuleDatasheet>{
	List<RuleDatasheet> findDbTable(RuleDatasource ruleDatasource) throws Exception;//查找数据源数据

	List<RuleDatasheetColumn> findTableCols(RuleDatasheet entity)  throws Exception; //查找库表数据
	
	List<LinkedHashMap<String,Object>> getTableDataPage(String datasourceId,String tableName,int pageNo,int pageSize) throws Exception;//查库表接口及表数据
	//保存
	void saveOrUpdate(RuleDataEntity ruleDataEntity);

}
